<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport"
              content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
        <style>
            *{
                padding: 0;
                margin: 0;
            }
            .nr{
                width: 100vw;
                height: 644px;
            }
            .db{
                position: relative;
                left: 0;
                bottom: 0;
            }
            router-link{
                text-decoration: none;
            }
        </style>
    </head>
    <body>
        <div id="app">
            <div class="nr">
            <router-view></router-view>
            </div>
            <div class="db">
            <router-link to="/">电影/影院</router-link>
            <router-link to="/sp">视频</router-link>
            <router-link to="/xsp">小视频</router-link>
            <router-link to="/yc">演出</router-link>
            <router-link to="/my">我的</router-link>
            </div>
        </div>
        <script src="./js/vue.js"></script>
        <script src="./js/vue-router.js"></script>
        <script>
            let dy = {
                template: `<div>电影/影院页</div>`
            }
            let sp = {
                template: `<div>视频页</div>`
            }
            let xsp = {
                template: `<div>小视频页</div>`
            }
            let yc = {
                template: `<div>演出页</div>`
            }
            let my = {
                template: `<div>我的页</div>`
            }

            let routes = [{"path": "/", component: dy}, {"path": "/sp", component: sp}, {
                "path": "/xsp",
                component: xsp
            }, {"path": "/yc", component: yc}, {"path": "/my", component: my},
            ];

            let router = new VueRouter({
                routes
            })

            new Vue({
                el: '#app',
                data: {},
                router
            });
        </script>
    </body>
</html>